//
//  GRGoodCountTableViewCell.m
//  YC_GRice
//
//  Created by luojinrong11 on 2018/8/27.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRGoodCountTableViewCell.h"

@implementation GRGoodCountTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)updateWithModel:(id)model atIndexPath:(NSIndexPath *)indexPath inView:(UIView *)view{
    self.countModel = model;
    self.rightOffset.constant = 10;
    self.leftOffset.constant = 10;
}

-(void)setCountModel:(GRGoodCountModel *)countModel{
    _countModel = countModel;
    
    self.goodNameLabel.hidden = countModel.isTitle;
    self.titleLabel.hidden = !countModel.isTitle;
    self.titleLabel.text = countModel.title;
    self.goodNameLabel.text = countModel.title;
    
}
- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
